﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace PayloadTracker.APRS
{
    /// <summary>
    /// Attribute used to find an APRSProvider to an APRSProviderSetup dialog.
    /// </summary>
    [AttributeUsage(AttributeTargets.Class,AllowMultiple = false)]
    public sealed class SetupControlAttribute : System.Attribute
    {
        Type m_Type;
        public SetupControlAttribute(Type UserControlType)
        {
            if (UserControlType.BaseType != typeof(IAPRSProviderSetup))
                throw new System.Exception("Invalid base type.");

            m_Type = UserControlType;
        }
        public Type Type
        {
            get { return m_Type; }
            set { m_Type = value; }
        }
            
    }
}
